<template >
  <div>
    <el-table
      :data="menuData"
      style="width: 100%; margin-bottom: 20px"
      row-key="menuId"
      border
      lazy
      :tree-props="{ children: 'child', hasChildren: 'hasChildren' }"
    >
      <el-table-column type="selection" width="55"> </el-table-column>
      <el-table-column prop="menuId" label="菜单ID"> </el-table-column>
      <el-table-column prop="menuName" label="菜单名称"> </el-table-column>
    </el-table>
  </div>
</template>
<script>
import axios from "@/unit/request";
export default {
  data() {
    return {
      menuData: [],
      multipleSelection: [],
    };
  },

  methods: {
    MenuList() {
      axios.get("/Menu/Query").then((res) => {
        this.menuData = res.data.data;
      });
    },
  },

  created() {
    this.MenuList();
  },
};
</script>
<style >
</style>